package com.ruoyi.shopping.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * sku的库存对象 mall_skus
 * 
 * @author ruoyi
 * @date 2024-11-20
 */
public class MallSkus extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private Long id;

    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 预警库存 */
    @Excel(name = "预警库存")
    private Long lowStock;

    /** 展示图片 */
    @Excel(name = "展示图片")
    private String pic;

    /** 销量 */
    @Excel(name = "销量")
    private Long sale;

    /** 单品促销价格 */
    @Excel(name = "单品促销价格")
    private BigDecimal promotionPrice;

    /** 锁定库存 */
    @Excel(name = "锁定库存")
    private Long lockStock;

    /** 商品销售属性，json格式 */
    @Excel(name = "商品销售属性，json格式")
    private String spData;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setLowStock(Long lowStock) 
    {
        this.lowStock = lowStock;
    }

    public Long getLowStock() 
    {
        return lowStock;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setSale(Long sale) 
    {
        this.sale = sale;
    }

    public Long getSale() 
    {
        return sale;
    }
    public void setPromotionPrice(BigDecimal promotionPrice) 
    {
        this.promotionPrice = promotionPrice;
    }

    public BigDecimal getPromotionPrice() 
    {
        return promotionPrice;
    }
    public void setLockStock(Long lockStock) 
    {
        this.lockStock = lockStock;
    }

    public Long getLockStock() 
    {
        return lockStock;
    }
    public void setSpData(String spData) 
    {
        this.spData = spData;
    }

    public String getSpData() 
    {
        return spData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("price", getPrice())
            .append("stock", getStock())
            .append("lowStock", getLowStock())
            .append("pic", getPic())
            .append("sale", getSale())
            .append("promotionPrice", getPromotionPrice())
            .append("lockStock", getLockStock())
            .append("spData", getSpData())
            .toString();
    }
}
